package com.justnow.facade.macker;

import com.justnow.facade.shape.Shape;
import com.justnow.facade.shape.impl.Circle;
import com.justnow.facade.shape.impl.Rectangle;
import com.justnow.facade.shape.impl.Square;

/**
 * @author justnow
 * Created on 2020-09-22
 * Description
 */
public class FacadeMaker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public FacadeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle() {
        circle.draw();
    }

    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }

}
